<?php
if(!defined('IN_THANKPHP_SYSTEM')) exit('Access Denied!');

class document{
	public $type = 'html';
	public $content = '';
	public $html = array('');
	
	public function init() {
		return new self;
	}
	
	function header(){
		switch($this->type){
			case 'html':
				
				break;
			case 'json':
				
				break;
			case 'xml':
				
				break;
			case 'images':
				break;
				
			case 'download':
				
				break;
			default:
				
				break;
		}
	}
	
	function setType($type){
		if(!$type){
			$debug->add(__class__.'.'.__method__.'.empty', 'notice');
			return;
		}
		$this->type = $type;
	}

	function addJs(){
		
	}
	
	function setJs(){
		
	}
	
	function addCss(){
		
	}
	
	function setCss(){
		
	}
	
	function addTitle(){
		
	}
	
	function setTitle(){
	}
	
	function setBodyOnLoad($str){
		$this->html['bodyonload'] = $stt;
	}
	
	function create(){
		$this->html['title'] = '';
		$this->html['css'] = '';
		$this->html['js'] = '';
		$this->html['charset'] = '';
	}
	
}